package com.turing.usdtpay.mvp.contract;

import android.app.Activity;

import com.turing.usdtpay.entity.OrderInfoData;
import com.turing.usdtpay.mvp.presenter.BasePresenter;
import com.turing.usdtpay.mvp.view.BaseView;

import java.io.File;

/**
 * @作者：JAY
 * @创建时间：2019/11/7 15:44
 * @描述：
 **/
public class OrderInfoContract {

    public interface View extends BaseView<Present> {

        public void onSuccess(OrderInfoData data);

        public void uploadSuccess(String url);

        public void getSuccess();

        public void paySuccess();

        public void cancelSuccess();

        public void onFail(String msg);

        public void onProgress(int progress);
    }

    public interface Present extends BasePresenter {
        public void getOrderInfo(Activity activity, String order);

        public void uploadPhoto(Activity activity, String order, int type, File file);

        public void confirmGet(Activity activity,String order);

        public void confirmPay(Activity activity,String order);

        public void cancelOrder(Activity activity,String order);
    }
}
